using System.Collections.Generic;
using Newtonsoft.Json;

namespace Betfair.Api
{
    public sealed class StartingPrice
    {
        public StartingPrice(double near, double far, IList<PriceSize> back, IList<PriceSize> lay, double actual)
        {
            Near = near;
            Far = far;
            Back = back;
            Lay = lay;
            Actual = actual;
        }

        [JsonProperty("nearPrice")]
        public double Near { get; private set; }

        [JsonProperty("farPrice")]
        public double Far { get; private set; }

        [JsonProperty("backStakeTaken")]
        public IList<PriceSize> Back { get; private set; }

        [JsonProperty("layLiabilityTaken")]
        public IList<PriceSize> Lay { get; private set; }

        [JsonProperty("actualSP")]
        public double Actual { get; private set; }
    }
}